{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">

        <table class="table table-hover tb-info">
            <tr>
                <th class="col-md-1">ID</th>
                <th class="col-md-2">NAME</th>
                <th class="col-md-2">STATUS</th>
                <th class="col-md-2">REMARL</th>
                <th class="col-md-7">ACTION</th>
            </tr>
            {volist name="data" id="v" }
            <tr>
                <td>{$v['id']}</td>
                <td>{$v['name']}</td>
                <td>{$v['remark']}</td>
                <td>
                    {switch name="$v.status"}
                    {case value="1"}启用{/case}
                    {case value="0"}禁用{/case}

                    {/switch}
                </td>

                <td>
                    <a href="{:url('admin/Role/roledel',['id'=>$v['id']])}">删除</a>
                    <a href="{:url('admin/Role/roleedit',['id'=>$v['id']])}">修改</a>
                    <a href="{:url('admin/Role/nodelist',['id'=>$v['id']])}">分配权限</a>
                </td>
            </tr>
            {/volist}
            <tr></tr>
        </table>
    </div>
</div>

{/block}